package model

type SpecItem struct {
	Id         int64  `json:"id"`
	ItemName   string `json:"item_name"`
	CreateTime int64  `json:"create_time"`
	UpdateTime int64  `json:"update_time"`
	DeleteTime int64  `json:"delete_time"`
	CategoryId int64  `json:"category_id"`
}

type SpecItemCategory struct {
	SpecItem     SpecItem     `xorm:"extends"`
	SpecCateGory SpecCateGory `xorm:"extends"`
}

type SpecItemCategoryUpdateInfo struct {
	SpecItemCategory
	SpecCateGoryList []SpecModelCategory
}

type SpecModel struct {
	Id         int64  `json:"id"`
	ModelName  string `json:"model_name"`
	CreateTime int64  `json:"create_time"`
	UpdateTime int64  `json:"update_time"`
	DeleteTime int64  `json:"delete_time"`
}

type SpecCateGory struct {
	Id           int64  `json:"id"`
	CategoryName string `json:"category_name"`
	CreateTime   int64  `json:"create_time"`
	UpdateTime   int64  `json:"update_time"`
	DeleteTime   int64  `json:"delete_time"`
	ModelId      int64  `json:"model_id"`
}

type SpecModelCategory struct {
	SpecCateGory  SpecCateGory `xorm:"extends"` //顺序不能乱 主表放到最前面
	SpecModelInfo SpecModel    `xorm:"extends"`
}

type SpecModelCategoryInfo struct {
	SpecModelCategory
	SpecModelList []SpecModel
}
